package com.solution.admin.order.service;

import java.util.List;
import java.util.Map;

import com.solution.admin.order.entity.OrderDeliveredBillEntity;
import com.solution.common.page.PageBean;
import com.solution.common.page.PageParam;

/**
 * 发货单接口service接口层
 * @author lilp
 * @date 2017-09-18 22:56:20
 */
public interface OrderDeliveredBillService {

	/**
	 * 保存发货单
	 * @param orderDeliveredBillEntity 发货单实体
	 * @return Long 返回插入发货单记录ID
	 * @author lilp
	 * @date 2017-09-18 22:56:20
	 */
	public long saveOrderDeliveredBill(OrderDeliveredBillEntity orderDeliveredBillEntity);
	
	
	/**
	 * 删除发货单
	 * @param 
	 * @return int 返回删除记录条数
	 * @author lilp
	 * @date 2017-09-18 22:56:20
	 */
	public int deleteOrderDeliveredBillById(long id);
	
	
	/**
	 * 根据ID查询发货单
	 * @param id 发货单id
	 * @return OrderDeliveredBillEntity 发货单对象
	 * @author lilp
	 * @date 2017-09-18 22:56:20
	 */
	public OrderDeliveredBillEntity getOrderDeliveredBillById(Long id);

	/**
	 * 更新发货单
	 * @param OrderDeliveredBillEntity 发货单对象
	 * @return int 更新是否成功，>1代表更新成功
	 * @author lilp
	 * @date 2017-09-18 22:56:20
	 */
	public int updateOrderDeliveredBill(OrderDeliveredBillEntity orderDeliveredBillEntity);

	/**
	 * 分页查询发货单
	 * @param pageParam 分页参数
	 * @param paramMap 查询参数
	 * @return PageBean 分页参数和分页数据
	 * @author lilp
	 * @date 2017-09-18 22:56:20
	 */
	public PageBean listOrderDeliveredBillPage(PageParam pageParam, Map<String, Object> paramMap);
	
	/**
	 * 根据条件查询发货单
	 * @param param
	 * @return 发货单列表
	 * @author lilp
	 * @date 2017-09-18 22:56:20
	 */
	public List<OrderDeliveredBillEntity> listOrderDeliveredBill(Map<String, Object> param);
	
	
	/**
	 * 查询已发货的商品清单
	 * @param paramMap
	 * @return
	 */
	public List<OrderDeliveredBillEntity> listOrderDetailDelivered( Map<String, Object> paramMap);

	/**
	 * 全部发货
	 * @param param
	 * @return
	 */
	public int sendFullOrder(Map<String, Object> param);

	/**
	 * 部分发货
	 * @param param
	 * @return
	 */
	public int sendPartOrder(Map<String, Object> param);
	
}
